//
//  XSGridReadme.h
//  Test
//
//  Created by xueshan1 on 2018/12/18.
//  Copyright © 2018 xueshan1. All rights reserved.
/* 使用方法
 
 
 XSGrid *grid = [[XSGrid alloc]initWithFrame:CGRectMake(10, 30, 300, 300)];
 grid.backgroundColor = [UIColor yellowColor];
 [self.view addSubview:grid];
 _grid = grid;
 
 XSGridColumn *c1 = [XSGridColumn new];
 c1.title = @"名字";
 c1.keyPath = @"num0";
 c1.columnWidth = 100;
 c1.contentPadding = UIEdgeInsetsMake(0, 10, 0, 10);
 
 
 XSGridColumn *c2 = [XSGridColumn new];
 c2.title = @"数学成绩";
 c2.keyPath = @"num1";
 c2.columnWidth = 100;
 c2.contentPadding = UIEdgeInsetsMake(0, 10, 0, 10);
 
 XSGridColumn *c3 = [XSGridColumn new];
 c3.title = @"语文成绩";
 c3.keyPath = @"num2";
 c3.columnWidth = 100;
 
 //列
 [grid addColumn:c1];
 [grid addColumn:c2];
 [grid addColumn:c3];
 //每一行
 NSMutableDictionary *d1 = [NSMutableDictionary new];
 [d1 setObject:@"小明" forKey:c1.keyPath];
 [d1 setObject:[NSString stringWithFormat:@"%d", arc4random_uniform(1000) ] forKey:c2.keyPath];
 [d1 setObject:[NSString stringWithFormat:@"%d", arc4random_uniform(1000) ] forKey:c3.keyPath];
 
 NSMutableDictionary *d2 = [NSMutableDictionary new];
 [d2 setObject:@"小红师捡垃圾费立即票据红监考老师捡垃圾费立即票据" forKey:c1.keyPath];
 [d2 setObject:[NSString stringWithFormat:@"%d", arc4random_uniform(1000) ] forKey:c2.keyPath];
 [d2 setObject:[NSString stringWithFormat:@"%d", arc4random_uniform(1000) ] forKey:c3.keyPath];
 
 //某个cell 可以直接绘制图片
 UIImage*image = [UIImage imageNamed:@"detail_down@3x.png"];
 
 NSMutableDictionary *d3 = [NSMutableDictionary new];
 [d3 setObject:@"小明3小明3小明3小明3小明3小明3小明3小明3小明3" forKey:c1.keyPath];
 [d3 setObject:image forKey:c2.keyPath];
 [d3 setObject:@"88" forKey:c3.keyPath];
 
 
 [grid addRow:d1];
 [grid addRow:d2 rowhHeight:50];
 [grid addRow:d3];
 
 [grid refreshGrid];
 
 
 */

#ifndef XSGridReadme_h
#define XSGridReadme_h


#endif /* XSGridReadme_h */
